package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.AccessoryRelDao;
import com.hf.eagle.domain.AccessoryRel;
import com.hf.eagle.service.AccessoryRelService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-09-06 23:44
 */
@Service
public class AccessoryRelServiceImpl implements AccessoryRelService {

	@Resource
	private AccessoryRelDao accessoryRelDao;
	

	public Long createAccessoryRel(AccessoryRel t) {
		return this.accessoryRelDao.insertEntity(t);
	}

	public AccessoryRel getAccessoryRel(AccessoryRel t) {
		return this.accessoryRelDao.selectEntity(t);
	}

	public Long getAccessoryRelCount(AccessoryRel t) {
		return this.accessoryRelDao.selectEntityCount(t);
	}

	public List<AccessoryRel> getAccessoryRelList(AccessoryRel t) {
		return this.accessoryRelDao.selectEntityList(t);
	}

	public int modifyAccessoryRel(AccessoryRel t) {
		return this.accessoryRelDao.updateEntity(t);
	}

	public int removeAccessoryRel(AccessoryRel t) {
		return this.accessoryRelDao.deleteEntity(t);
	}

	public List<AccessoryRel> getAccessoryRelPaginatedList(AccessoryRel t) {
		return this.accessoryRelDao.selectEntityPaginatedList(t);
	}

}
